/*河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
*/
package cn.javaxc.system.action.system;
import java.io.*;
import java.util.*;
import java.sql.*;
import cn.javaxc.model.base.SQL;
import cn.javaxc.model.base.SQLList;
import cn.javaxc.model.base.SQLMap;
import cn.javaxc.model.base.SQLParam;
import cn.javaxc.model.page.BatisPage;
import cn.javaxc.mvcwork.controller.web.TreeBean;
import cn.javaxc.mvcwork.util.common.CommonUtil;
import cn.javaxc.mvcwork.util.common.MapListUtil;
import cn.javaxc.mvcwork.util.helper.FrameHelper;
import cn.javaxc.mvcwork.util.helper.TreeTableHelper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.javaxc.system.action.base.BaseAction;
import cn.javaxc.system.mapper.system.PictureManaMapper;
public class PictureMana extends BaseAction
{
    @Autowired(required=false)
	private PictureManaMapper mapper;
    /**
    菜单图标
    */
    
    public Map menuPicture() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_images=mapper.s_images(params);
        result.put("s_images", s_images);
        
        return result;
    }
    /**
    选择图标
    */
    
    public Map menuPictureChoice() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> p_images=mapper.p_images(params,pagination);
        p_images.setPagedListInfo(pagination);
        result.put("p_images", p_images);
        
        
        SQLList<SQLMap> s_menu=mapper.s_menu(params);
        SQLMap s_menu_emt=s_menu.getExistfirst();
        result.put("s_menu", s_menu_emt);
        
        return result;
    }
    /**
    文件图标设置
    */
    
    public Map filePictureSet() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_fileimg=mapper.s_fileimg(params);
        result.put("s_fileimg", s_fileimg);
        
        return result;
    }
    /**
    选择图标修改
    */
    
    public Map menuPictureChoiceSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        int u_img = mapper.u_img(params);
        result.put("u_img", u_img);
        
        return result;
    }
}